package cn.tedu.mall1.order.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class OrderDetailsVO {
    @ApiModelProperty(value = "订单列表号")
    Integer orders;
    @ApiModelProperty(value = "商品名称")
    String commodity;
    @ApiModelProperty(value = "图片路径")
    String imgUrl;
    @ApiModelProperty(value = "商品描述")
    String description;
    @ApiModelProperty(value = "订单号")
    Long orderNumber;
    @ApiModelProperty(value = "商品规格")
    String  specification;
    @ApiModelProperty(value = "商品价格")
    Integer price;
    @ApiModelProperty(value = "数量")
    Integer count;
    @ApiModelProperty(value = "付款数")
    Integer payment;
    @ApiModelProperty(value = "状态")
    Integer status;
    @ApiModelProperty(value = "地址")
    String address;
    @ApiModelProperty(value = "手机号")
    Integer phone;
    @ApiModelProperty(value = "用户名")
    String username;
    @ApiModelProperty(value = "支付方式")
    String payway;
    @ApiModelProperty(value = "下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date orderTime;
    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    Date finishTime;
    @ApiModelProperty(value = "操作")
    String operate;
    @ApiModelProperty(value = "快递")
    String express;
}
